export const option6 = {
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {
            name: "支出",
            data: [120, 200, 150, 80, 70, 110, 130],
            type: 'bar',
            stack: "1",
            label: {
                show: true,
                position: "top",
                fontWeight: "bold",
                color: "#fff",
                offset: [0, 30],
            },
            z: 4,
            showBackground: true,
            backgroundStyle: {
                color: 'rgba(180, 180, 180, 0.2)'
            }
        },
        // 蓝色柱子底部的圆
        {
            name: "支出",
            data: [0, 0],
            stack: "1",
            type: 'pictorialBar',
            symbolSize: [23, 10],
            symbolOffset: [0, 5],
            symbolRepeat: false,
            z: 3,
            symbolMargin: 1,

        },

        {
            name: "收入",
            data: [200, 240, 190, 120, 110, 150, 170].map((item, index) => item - [120, 200, 150, 80, 70, 110, 130][index]),
            type: 'bar',
            stack: "1",
            label: {
                show: true,
                position: "top",
                fontWeight: "bold",
                color: "#fff",
                offset: [0, 30],
            },
            showBackground: true,
            backgroundStyle: {
                color: 'rgba(180, 180, 180, 0.2)'
            }
        },
        {
            name: "收入",
            data: [120, 200],
            type: 'pictorialBar',
            symbolSize: [23, 10],
            symbolOffset: [0, -5],
            symbolRepeat: false,
            symbolPosition: "end",
            z: 5,
            symbolMargin: 1,

        },



        //顶部圆
        {
            name: "收入",
            data: [200, 240],
            type: 'pictorialBar',
            symbolSize: [23, 10],
            symbolOffset: [0, -5],
            symbolRepeat: false,
            symbolPosition: "end",
            z: 5,
            symbolMargin: 1,

        },

    ]
};